package com.example.demo.dao;

import com.example.demo.entity.Scenery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SceneryDao {
    public List<Scenery> getAll();

    //添加景点
    public int addScenery(Scenery scenery);
    public int deleteScenery(Integer id);
    public int updateScenery(Scenery scenery);
    public Scenery findSceneryById(Integer id);
    //模糊查询
    public List<Scenery> find(Map<String,Object> map);
}
